package com.w2e.travel.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yyyl
 * @since 2024-06-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("travelogue")
public class Travelogue implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "travelogue_id", type = IdType.AUTO)
    private Integer travelogueId;

    private Integer userId;

    private String title;

    private String backImg;

    private LocalDateTime createdTime;

    private LocalDateTime updateTime;

    private Integer viewCount;

    private Integer flag;

    private Integer isDraft;

    @TableField(exist = false)
    private List<Contents> contentsList;


}
